#ifndef REGISTRY_H
#define REGISTRY_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#define REGISTRY_N_MAX 32
struct gbl{
  enum wl_itfs itf;
  k_u32 name;
};

#ifdef REGISTRY_C
struct gbl registry[REGISTRY_N_MAX];
#else
extern struct gbl registry[REGISTRY_N_MAX];
#endif

void registry_init(void);
void registry_get(void);
void registry_add(k_u32 name,enum wl_itfs itf);
void registry_del(k_u32 name);
k_u32 registry_bind(struct gbl *g,void *listener);
#endif
